home *** CD-ROM | disk | FTP | other *** search
Makefile | 1999-11-11 | 2.3 KB | 84 lines |
- ## Makefile for DCal
-
- ## DCal, a Discordian calendar for the Palm OS.
- ## Copyright (C) 1999 Ron Hale-Evans <rwhe@apocalypse.org>.
- ##
- ## This program is free software; you can redistribute it and/or modify
- ## it under the terms of the GNU General Public License as published by
- ## the Free Software Foundation; the version used for this program
- ## is Version 2.
- ##
- ## This program is distributed in the hope that it will be useful,
- ## but WITHOUT ANY WARRANTY; without even the implied warranty of
- ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ## GNU General Public License for more details.
- ##
- ## You should have received a copy of the GNU General Public License
- ## along with this program; if not, write to the Free Software
- ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- ##
- ## This program comes with ABSOLUTELY NO WARRANTY. Use it at your own risk.
- ## For the text of the GNU General Public License, see the file gpl.txt,
- ## which should have been distributed with this file.
-
-
- TARGET = dcal
- APPNAME = "DCal"
- APPID = "DCal"
-
- OBJS = $(TARGET).o
- LIBS =
-
- CC = m68k-palmos-coff-gcc
-
- CFLAGS = -Wall -g -O2
-
- PILRC = pilrc
- OBJRES = m68k-palmos-coff-obj-res
- NM = m68k-palmos-coff-nm
- BUILDPRC = build-prc
- PILOTXFER = pilot-xfer
-
- all: $(TARGET).prc
-
- .S.o:
- $(CC) $(TARGETFLAGS) -c $<
-
- .c.s:
- $(CC) $(CSFLAGS) $<
-
- $(TARGET).prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin.res
- $(BUILDPRC) $(TARGET).prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
-
- code0000.$(TARGET).grc: $(TARGET)
- $(OBJRES) $(TARGET)
-
- code0001.$(TARGET).grc: code0000.$(TARGET).grc
-
- data0000.$(TARGET).grc: code0000.$(TARGET).grc
-
- pref0000.$(TARGET).grc: code0000.$(TARGET).grc
-
- rloc0000.$(TARGET).grc: code0000.$(TARGET).grc
-
- bin.res: $(TARGET).rcp $(TARGET).pbm
- $(PILRC) $(TARGET).rcp .
- touch bin.res
-
- $(TARGET): $(OBJS)
- $(CC) $(CFLAGS) $(OBJS) -o $(TARGET) $(LIBS)
- ! $(NM) -u $(TARGET) | grep .
-
- send: $(TARGET).prc
- $(PILOTXFER) -i $(TARGET).prc
-
- depend:
- makedepend -Y -I. *.c
-
- clean:
- -rm -f *.[oa] $(TARGET) *.bin bin.res *.grc Makefile.bak
-
- veryclean: clean
- -rm -f $(TARGET).prc pilot.ram pilot.scratch
-
-